//
// Created by 吴锐 on 2022/2/28.
//

#include "iostream"

using namespace std;

template<class T>
class Base {
public:
    T m;
};

class Son : public Base<int> {

};

void test01() {
    Son s1;
}

template<class T1, class T2>
class Son2 : public Base<T2> {
public:
    T1 obj;

    Son2() {
        cout << "T1的数据类型为: " << typeid(T1).name() << endl;
        cout << "T2的数据类型为: " << typeid(T2).name() << endl;
    }
};

void test02() {
    Son2<int, char> s2;
}

int main() {
//    test01();
    test02();
    return 0;
}